package com.kly.user.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.common.utils.CollectionUtils;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.kly.user.db.dao.PageContentConfigDao;
import com.kly.user.db.entity.PageContentConfigEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
* User: linqu
* Date: 2024-01-03
* Time: 15:59:08.279
*/

@Repository
public class PageContentConfigDaoImpl extends AbstractBaseMapper<PageContentConfigEntity> implements PageContentConfigDao {
    @Override
    public List<PageContentConfigEntity> listRegisterConfigs(List<Integer> list, String appCode) {
        if (CollectionUtils.isEmpty(list)) {
            return Lists.newArrayList();
        }
        final HashMap<String, Object> params = Maps.newHashMap();
        params.put("list", list);
        params.put("appCode", appCode);
        return this.getSqlSession().selectList(this.getStatement("listRegisterConfigs"), params);
    }
}